package org.dromara.wms.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.wms.domain.WmsOrderLine;

import java.util.Date;

/**
 * 测试主从业务对象 wms_order_line
 */

@Data
@AutoMapper(target = WmsOrderLine.class, reverseConvertGenerate = false)
public class WmsOrderLineBo {

  /**
   * 父主键
   */
  private Long id;
  /**
   * 子主键
   */
  @NotNull(message = "主键不能为空", groups = {EditGroup.class})
  private Long lineId;

  private Long productId;
  private String batchCode;
  private String measureUnit;
  private Double price;
  private Long quantity;
  private Long whId;
  private Long areaId;
  private Double totalMoney;
  private Double discountMoney;
  private Double costMoney;
  private Date expireDate;
}
